/* Base Styles */
@import url('https://googleapis.com');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  padding-bottom: 60px; /* Space for mobile sticky footer */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* Sticky Header */
.navbar {
  position: sticky;
  top: 0;
  background-color: #024f34;
  border-bottom: 2px solid #ccc;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
  padding: 1% 1%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  margin-right: 15px;
}

.nav-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;

}

.nav-links a {
  text-decoration: none;
  color:#ffffff;
  font-weight: bold;
  font-size: 28px;
 
}

/* Hero / About Section */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logoimg{
  width:100%;
}

.logo{
  width:15%;
}

@media (min-width: 769px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
  }
  .section {
    /* Matches or slightly exceeds the height of your sticky header */
    scroll-margin-top: 150px; 
  }
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero-text {
  flex: 2;
}
/* Services Section */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 769px) {
  .cards-grid {
    flex-direction: row;
    flex-wrap: wrap; /* Allows items past the 3rd to wrap to line 2 */
    justify-content: center; /* Centers the 2 bottom cards on row 2 */
  }

  .card {
    /* Sets width to roughly 1/3 minus the gap space */
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }
}

.card {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

.card img {
  width: 100%;
  height: 200px; /* Set your desired uniform height here */
  object-fit: cover; /* Crops the image proportionally so it fills the box without stretching */
  margin-bottom: 15px;
  border-radius: 4px; /* Optional: rounds image corners nicely */
}

/* Gallery Carousel */
.carousel-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.prev-btn { left: -40px; }
.next-btn { right: -40px; }

/* Testimonials */
.testimonial-card {
  background: #f9f9f9;
  border-left: 4px solid #007bff;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

.testimonial-card .author {
  margin-top: 10px;
  text-align: right;
  font-weight: bold;
  font-style: normal;
}

/* Side Action Button & 1/4 Screen Overlay */
.side-action-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #024f34;
  color: white;
  border: none;
  padding: 1% 1%;
  cursor: pointer;
  border-radius: 6px 0 0 6px;
  z-index: 1001;
  font-size: large;
  font-weight: bold;
}
.side-action-btn:hover {
  background: #087A52;
  transform: translateY(-50%) translateX(-4px);
}

.overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 25%;
  min-width: 280px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 1002;
  padding: 30px 20px;
}

.overlay.active {
  right: 0;
}

.overlay-content {
  position: relative;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: 0;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.action-btn {
  background: #024f34;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: large;
  font-weight: bold;
}
.action-btn:hover{
  background: #087A52;
  transform: scale(1.05);
}


/* Mobile Sticky Footer */
.mobile-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 999;
}

.mobile-sticky-footer .action-btn {
  flex: 1;
  margin: 0 10px;
}

@media (min-width: 769px) {
  .mobile-sticky-footer {
    display: none;
  }
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  padding: 30px 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

@media (min-width: 769px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-right ul {
  list-style: none;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
}
main ul{
  /* user-agent styles */
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
  font-weight: bold;
}

.faq-head{
  padding-bottom: 5%;
  text-decoration: underline;
}
.section-intro,.faq-item{
  padding-bottom: 3%;
}
.faq-item h2{
  color: #024f34;
  text-align: left;
}

.firstItem{
    padding-top: 8%;
}
/* Responsive Navigation Switch */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    color: white;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #024f34;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 20px;
  }
  
  .carousel-btn {
    padding: 5px;
  }
  
  .prev-btn { left: 5px; }
  .next-btn { right: 5px; }
  
  .side-action-btn {
    display: none;
  }

  .faq-section{
    text-align: center;
  }
  .section-intro{
    padding-top: 6%;
    padding-bottom: 6%;
    background-color: #087A52;
    color: white;
  }
  .logoimg{
    width: 200%;
  }
  
}